package com.leadership.entity.umu;

/**
 * @author haiyan_xiao
 *
 */
public class UMUExamData {

    private UMUUser user;

    private String score;

    private int highestScore;

    /** 是否及格 */
    private boolean hasPassed;

    /** 考试所用时间（单位：秒） */
    private int timeConsumed;

    /** 提交时间 */
    private long submitTime;

    /** 提交次数 */
    private int submitCount;

    /** 考试排名 */
    private int ranking;

    public UMUExamData() {
        
    }

    public String getEmail() {
        return user.getEmail();
    }

    public int getIntScore() {
        Double doubleScore = Double.parseDouble(score);
        return doubleScore.intValue();
    }

    /**
     * @return the user
     */
    public UMUUser getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(UMUUser user) {
        this.user = user;
    }

    /**
     * @return the score
     */
    public String getScore() {
        return score;
    }

    /**
     * @param score the score to set
     */
    public void setScore(String score) {
        this.score = score;
    }

    /**
     * @return the highestScore
     */
    public int getHighestScore() {
        return highestScore;
    }

    /**
     * @param highestScore the highestScore to set
     */
    public void setHighestScore(int highestScore) {
        this.highestScore = highestScore;
    }

    /**
     * @return the hasPassed
     */
    public boolean isHasPassed() {
        return hasPassed;
    }

    /**
     * @param hasPassed the hasPassed to set
     */
    public void setHasPassed(boolean hasPassed) {
        this.hasPassed = hasPassed;
    }

    /**
     * @return the timeConsumed
     */
    public int getTimeConsumed() {
        return timeConsumed;
    }

    /**
     * @param timeConsumed the timeConsumed to set
     */
    public void setTimeConsumed(int timeConsumed) {
        this.timeConsumed = timeConsumed;
    }

    /**
     * @return the submitTime
     */
    public long getSubmitTime() {
        return submitTime;
    }

    /**
     * @param submitTime the submitTime to set
     */
    public void setSubmitTime(long submitTime) {
        this.submitTime = submitTime;
    }

    /**
     * @return the submitCount
     */
    public int getSubmitCount() {
        return submitCount;
    }

    /**
     * @param submitCount the submitCount to set
     */
    public void setSubmitCount(int submitCount) {
        this.submitCount = submitCount;
    }

    /**
     * @return the ranking
     */
    public int getRanking() {
        return ranking;
    }

    /**
     * @param ranking the ranking to set
     */
    public void setRanking(int ranking) {
        this.ranking = ranking;
    }
}
